<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Insert title here</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
    <style type="text/css">
        body {
            margin: 0;
            padding: 0;
            background-color: #eeeeee;
            font-family: "楷体";
        }

        .item {
            margin: 20px;
            margin-bottom: 50px;
        }

        .imte_top {
            text-align: center;
        }

        .imte_top > span {
            font-size: 14px;
            display: inline-block;
            padding: 5px 12px;
            background-color: #ddd;
            color: #fff;
            border-radius: 5px;
        }

        .item_content {
            background-color: #fff;
            padding: 25px 15px;
            margin-top: 6px;
        }

        .item_content_top_1 {
            font-size: 24px;
            font-weight: bold;
        }

        .item_content_top_2 {
            color: #eee;
            font-size: 14px;
            margin: 5px 0px;
        }

        .item_content_top_3 {
            margin: 10px 0px;
        }

        .item_content_top_4 {
            margin: 10px 0px;
        }

        .item_content_bottom > a {
            text-decoration: none;
            color: #33e;
        }
    </style>
</head>
<body>

    <div class="content" id="s0Content">

    </div>
    <div class="content" id="s1Content">

    </div>
</body>
	<script src="js/jquery.min.js"></script>
	<script src="layer/layer.js"></script>
	<script>
		// 网页加载完毕时候执行的代码，所有的快递数据
		$(function () {
			$.getJSON("/wx/findExpressByUserPhone.do",null,function (data) {
			    var s0 = data.s0;
			    var s1 = data.s1;
			    for (i=0;i<s0.length;i++){
			        var item = "<div class=\"item\">\n" +
                        "        <div class=\"imte_top\"><span>"+ s0[i].inTime +"</span></div>\n" +
                        "        <div class=\"item_content\">\n" +
                        "            <div class=\"item_content_top\">\n" +
                        "                <div class=\"item_content_top_1\">取件通知</div>\n" +
                        "                <div class=\"item_content_top_2\">"+ s0[i].inTime +"</div>\n" +
                        "                <div class=\"item_content_top_3\">您有一个包裹到e栈了!</div>\n" +
                        "                <div class=\"item_content_top_4\">\n" +
                        "                    取件码:<span style=\"color:#05a\">"+ s0[i].code +"</span><br>\n" +
                        "                    快递公司:"+ s0[i].company +"<br>\n" +
                        "                    运单号码:"+ s0[i].number +"<br>\n" +
                        "                    站点电话:"+ s0[i].sysPhone +"<br>\n" +
                        "                    取件地址:马房山校区东院快件e栈电子自助柜<br>\n" +
                        "                </div>\n" +
                        "            </div>\n" +
                        "            <hr>\n" +
                        "            <div class=\"item_content_bottom\">\n" +
                        "                <a href=\"/wx/creatQrCode.do?type=express&code="+ s0[i].code +"\">二维码</a>\n" +
                        "            </div>\n" +
                        "        </div>\n" +
                        "    </div>";
			        $("#s0Content").append($(item));
                }

                for (i=0;i<s1.length;i++){
                    var s1_item = "<div class=\"item\">\n" +
                        "        <div class=\"imte_top\"><span>"+ s1[i].outTime +"</span></div>\n" +
                        "        <div class=\"item_content\">\n" +
                        "            <div class=\"item_content_top\">\n" +
                        "                <div class=\"item_content_top_1\">取件成功通知</div>\n" +
                        "                <div class=\"item_content_top_2\">"+ s1[i].outTime +"</div>\n" +
                        "                <div class=\"item_content_top_3\">您有一个包裹从e栈取出了!</div>\n" +
                        "                <div class=\"item_content_top_4\">\n" +
                        "                    快递公司:"+ s1[i].company +"<br>\n" +
                        "                    运单号码:"+ s1[i].number +"<br>\n" +
                        "                    站点电话:"+ s1[i].sysPhone +"<br>\n" +
                        "                </div>\n" +
                        "            </div>\n" +
                        "            <hr>\n" +
                        "            <div class=\"item_content_bottom\">\n" +
                        "                <a href=\"#\">有疑问 ? 点了也没用</a>\n" +
                        "            </div>\n" +
                        "        </div>\n" +
                        "    </div>";
                    $("#s1Content").append($(s1_item));
                }

			},"JSON");
		})
	</script>
</html>